// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import './assets/fonts/font-awesome/css/font-awesome.min.css'
import './assets/fonts/iconfont/iconfont.css'

import iView from 'iview'
import 'iview/dist/styles/iview.css'

import mint from 'mint-ui'
import 'mint-ui/lib/style.css'

import './assets/scss/app.scss'
import http from '@/http'
import VHeader from '@/components/layouts/header.vue'
import VFooter from '@/components/layouts/footer.vue'
Vue.component('v-footer',VFooter)
Vue.component('v-header',VHeader)

require('es6-promise').polyfill()

Vue.use(iView)
Vue.use(mint)
Vue.config.productionTip = false
Vue.prototype.$http = http

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
